CC = g++
CFLAG = -g -O1 -Wall
LFLAG = -mwindows -static-libgcc -lfreeglut -lopengl32 -lglu32 -lglew32

SRC = $(sort $(wildcard *.cpp))
OBJ = $(patsubst %.cpp,%.o,$(SRC))
EXE = ../build/debug.exe
# TIMESTAMP = $(shell echo %DATE:~5,2%%DATE:~8,2%%TIME:~0,2%%TIME:~3,2%)

all:$(OBJ)
	xcopy .\texture\ ..\build\texture\ /S/Y
	$(CC) $(OBJ) ${LFLAG} -o $(EXE)

%.o:%.cpp
	${CC} ${CFLAG} -c $<

clean:
	$(shell if exist *.o del *.o)